<article class="module width_full">
    <header><h3>Editar Usuario</h3></header>
    <div class="module_content">
        <form style="width: 600px;" class="cmxform" method="post" id="usuarioAddForm" action="<?php echo $this->url(); ?>">
            <p>
                <label for="nombre">Nombres</label>
                <input name="nombre" id="nombre" type="text" value="<?php echo $this->user->nombre ?>"/>
            </p>
            <p>
                <label for="apellidos">Apellidos</label>
                <input name="apellidos" id="apellidos" type="text" value="<?php echo $this->user->apellidos ?>"/>
            </p>
            <p>
                <label for="email">Email</label>
                <input name="email" id="email" type="text" value="<?php echo $this->user->email ?>"/>
            </p>
            <p>
                <label for="telefono">Telefono</label>
                <input name="telefono" id="telefono" type="text" value="<?php echo $this->user->telefono ?>"/>
            </p>
            <p>
                <label for="username">Usuario</label>
                <input name="username" id="username" type="text" value="<?php echo $this->user->username ?>"/>
            </p>
            <p>
                <label for="password">Contrase&ntilde;a</label>
                <input name="password" id="password" type="text"/>
                <span style="font-style: italic;">Puede establecer una nueva contrase&ntilde;a.</span>
            </p>
            <p>
                <label for="area">Area</label>
                <select id="area" name="area">
                    <option value="Brand" <?php echo ($this->user->area == 'Brand') ? 'selected="selected"' : '' ?>>Brand</option>
                    <option value="Solutions" <?php echo ($this->user->area == 'Solutions') ? 'selected="selected"' : '' ?>>Solutions</option>
                    <option value="Comunication" <?php echo ($this->user->area == 'Comunication') ? 'selected="selected"' : '' ?>>Comunication</option>
                    <option value="GO to Market" <?php echo ($this->user->area == 'GO to Market') ? 'selected="selected"' : '' ?>>GO to Market</option>
                    <option value="Contabilidad" <?php echo ($this->user->area == 'Contabilidad') ? 'selected="selected"' : '' ?>>Contabilidad</option>
                    <option value="SAC" <?php echo ($this->user->area == 'SAC') ? 'selected="selected"' : '' ?>>SAC</option>
                    <option value="Logistica" <?php echo ($this->user->area == 'Logistica') ? 'selected="selected"' : '' ?>>Logistica</option>
                    <option value="Tigo People" <?php echo ($this->user->area == 'Tigo People') ? 'selected="selected"' : '' ?>>Tigo People</option>
                    <option value="Information" <?php echo ($this->user->area == 'Information') ? 'selected="selected"' : '' ?>>Information</option>
                    <option value="Call" <?php echo ($this->user->area == 'Call') ? 'selected="selected"' : '' ?>>Call</option>
                    <option value="Tigo Money" <?php echo ($this->user->area == 'Tigo Money') ? 'selected="selected"' : '' ?>>Tigo Money</option>
                    <option value="Gerentes" <?php echo ($this->user->area == 'Gerentes') ? 'selected="selected"' : '' ?>>Gerentes</option>
                    <option value="Tigo Business" <?php echo ($this->user->area == 'Tigo Business') ? 'selected="selected"' : '' ?>>Tigo Business</option>
                    <option value="Entretenimiento" <?php echo ($this->user->area == 'Entretenimiento') ? 'selected="selected"' : '' ?>>Entretenimiento</option>
                    <option value="Responsabilidad Social" <?php echo ($this->user->area == 'Responsabilidad Social') ? 'selected="selected"' : '' ?>>Responsabilidad Social</option>
                    <option value="RISK" <?php echo ($this->user->area == 'RISK') ? 'selected="selected"' : '' ?>>RISK</option>
                    <option value="Territorys" <?php echo ($this->user->area == 'Territorys') ? 'selected="selected"' : '' ?>>Territorys</option>
                    <option value="Regulacione" <?php echo ($this->user->area == 'Regulacione') ? 'selected="selected"' : '' ?>>Regulacione</option>
                </select>
            </p>
            
            
            <div class="clear"></div>

            <div class="submit_link">
                <input type="submit" value="Guardar" class="alt_btn"/>
            </div>
        </form>
    </div>
    <footer></footer>
</article>
<script language="javascript">
    $().ready(function() {
        $("#usuarioAddForm").validate({
            rules: {
                nombre: "required",
                apellidos: "required",
                email: "required",
                username: "required"    
            },
            messages: {
                nombre: "Ingrese su nombre.",
                apellidos: "Ingrese sus nombres.",
                email: "Email obligatorio.",
                username: "Usuario obligatorio."
            }
        });
    } );
    
</script>
